From a8a744041daef4fff9ae5fa394a3823ca49e94e4 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 10 Jul 2014 11:49:33 -0700 Subject: [PATCH] impl Show for Profile --- src/cargo/core/manifest.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cargo/core/manifest.rs b/src/cargo/core/manifest.rs index a7ed88af1..724f5216e 100644 --- a/src/cargo/core/manifest.rs +++ b/src/cargo/core/manifest.rs @@ -100,7 +100,7 @@ pub enum TargetKind { BinTarget } -#[deriving(Encodable, Decodable, Clone, Hash, PartialEq)] +#[deriving(Encodable, Decodable, Clone, Hash, PartialEq, Show)] pub struct Profile { env: String, // compile, test, dev, bench, etc. opt_level: uint, @@ -227,8 +227,8 @@ impl> Encodable for Target { impl Show for Target { fn fmt(&self, f: &mut Formatter) -> fmt::Result { - write!(f, "{}(name={}, path={})", self.kind, self.name, - self.src_path.display()) + write!(f, "{}(name={}, path={}, profile={})", self.kind, self.name, + self.src_path.display(), self.profile) } } -- 2.30.2